package animix.blue.server.log.controller;

import animix.blue.server.common.bean.pojo.Result;
import animix.blue.server.log.service.LogLoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@Api(description = "登陆日志API")
public class LogLoginController {

    @Autowired
    private LogLoginService logLoginService;

    @ApiOperation(value = "查询登陆日志", notes = "根据条件查询，返回登陆日志列表")
    @GetMapping("/log/login")
    public Result list(@RequestParam Map<String, Object> para) {
        return logLoginService.list(para);
    }
}
